import request from '/src/axios.js'
import {baseUrl} from "@/config/env.js";

const erpUrl = baseUrl + '/api-erp-work/'

/**
 * 回收站列表
 * @param {*} data
 */
export function workTrashIndexAPI(data) {
  return request({
    url: erpUrl + 'workTask/queryTrashList',
    method: 'post',
    data: data
  })
}

/**
 * 回收站彻底删除
 * @param {*} data
 */
export function workTrashDeleteAPI(taskId) {
  return request({
    url: erpUrl + `workTask/deleteTask/${taskId}`,
    method: 'post'
  })
}

/**
 * 回收站恢复
 * @param {*} data
 */
export function workTrashRecoverAPI(taskId) {
  return request({
    url: erpUrl + `workTask/restore/${taskId}`,
    method: 'post'
  })
}



